import request from '@/utils/request'

export default{
  // 获取医院设置列表
  getHospSetList(current,limit,searchObj){
    return request({
      url:`/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
      // type:'post',
      method:'post',
      data:searchObj
    })
  },
  // 删除医院设置方法
  delHospSet(id){
    return request({
      url:`/admin/hosp/hospitalSet/removeHospSet/${id}`,
      method:'delete'
    })
  },
  delHospSetBatch(idsList){
    return request({
      url:`/admin/hosp/hospitalSet/batchRemove/`,
      method:'delete',
      data:idsList
    })
  },
  lock(id,status){
    return request({
      url:`/admin/hosp/hospitalSet/lockHospSet/${id}/${status}`,
      method:'put'
    })
  },

  saveHospSet(hospSet){
    return request({
      url:'/admin/hosp/hospitalSet/saveHospSet',
      method:'post',
      data:hospSet
    })
  },
  // 根据医院设置ID查询医院信息
  selectHospById(id){
    return request({
      url: `/admin/hosp/hospitalSet/getHospSetById/${id}`,
      method:'get'
    })
  },
  // 更新医院设置
  updateHospSet(hospSet){
    return request({
      url:'/admin/hosp/hospitalSet/updateHospSetById', 
      method:'post',
      data:hospSet
    })
  }

}
